fn main() {
    let mut _a = [5, 5, 6, 5, 4, 5, 6];

    // a = 10;

    for mut element in _a {
        println!("sljfakdfal {}", element);

        element = 10;
    }

    for mut element in _a {
        println!(" {}", element);
    }

    println!("{}", add(5, 5));
    // println!("{}",param(5));

    println!("Hello, world!");

    let mut user1 = User {
        Name: "Mike".to_string(),


        
        Email: "mike@mike".to_string(),

        Age: 10,
        Active: true,
    };

    println!("name {} age {} ", user1.Name, user1.Age);
}

fn add(a: i32, b: i32) -> i32 {
    return a + b;
}

fn param(p: i32) -> i32 {
    // println!("{}",p);
    return 0;
}

struct User {
    Name: String,
    Email: String,

    
    Age: i32,
    Active: bool,
}

fn CreateUser(name: String, email: String, age: i32, active: bool) -> User {
    return User {
        Name: name,
        Email: email,
        Age: age,
        Active: active,
    };
}
